<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .div1 {
            border: 1px  blue dotted ;
            width: 100px;
            height: 100px;
            position: relative;
        }

        .div2 {
            position: absolute;
            width: 50%;
            height: 2%;
            background-color: blue;
            left: 25%;
            top: 49%;
            z-index: 5;
        }

        .div3 {
            position: absolute;
            width: 2%;
            height: 50%;
            background-color: blue;
            left: 49%;
            top: 25%;
            z-index: 5;
        }
    </style>
</head>

<body>
    <div class="div1">
        <div class="div2"></div>
        <div class="div3"></div>
    </div>
</body>

</html>